Skip to content

Instantly share code, notes, and snippets.

@jesussuarz
jesussuarz / install-lsi-megacli-and-create-raid5-for-ovh-servers.md
Last active May 10, 2024 11:32
Install LSI MegaCli package on Debian/Ubuntu/RedHat and Create 2 groups RAID5 for OVH Servers to use maximum disk space

Send your server to rescue mode, If you use rescue custom mode then you probably need to install megacli

Then you can, When your server reboots, log in to it via SSH using the rescue mode credentials that were emailed to you.

Install LSI MegaCli package on Linux - All distributions based on RedHat/Debian:

Ubuntu/Debian

Install necessary tools

apt-get install unzip
@jonlabelle
jonlabelle / docker_compose_cheatsheet.md
Last active May 10, 2024 11:29
Docker Compose Cheatsheet
@fxkraus
fxkraus / debian-install-megacli.md
Last active May 10, 2024 11:27
Install LSI MegaCli .deb package on Debian/Ubuntu

download

wget https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip

unzip

unzip 8-07-14_MegaCLI.zip
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 10, 2024 11:26
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@olls
olls / notepad.html
Last active May 10, 2024 11:24
A JavaScript notepad with open, save, local storage and markdown preview.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>NotePad!</title>
@darktable
darktable / MiniJSON.cs
Created November 30, 2011 23:08
Unity3D: MiniJSON Decodes and encodes simple JSON strings. Not intended for use with massive JSON strings, probably < 32k preferred. Handy for parsing JSON from inside Unity3d.
/*
* Copyright (c) 2013 Calvin Rien
*
* Based on the JSON parser by Patrick van Bergen
* http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html
*
* Simplified it so that it doesn't throw exceptions
* and can be used in Unity iPhone with maximum code stripping.
*
* Permission is hereby granted, free of charge, to any person obtaining
@junebug12851
junebug12851 / readme.md
Last active May 10, 2024 11:23
Extract all Discord emojis and stickers from all servers

Important Note!

Doing this requires running a script inside Discord, historically Discord has allowed these perfectly fine but it was for advanced people only and Discod discovered non-advanced users were copying and pasting random scripts people gave them which ended up being malicious and harmful to their account.

Discord has since blocked access to scripts unless you enable a hidden setting. The script below is open source and commented. Anyone is welcome to verify the legitimacy of it. It's very simple in how it works. However if you proceed further and enable custom scripts, I highly reccomend to disable it afterwards unless you know what you are doing. There's a reason Discord disabled this feature, don't even run scripts without knowing what they do first.

@qnighy
qnighy / PC98ext.md
Last active May 10, 2024 11:21
PC-9800シリーズ機種依存文字 (JIPS由来文字) 9区~12区

PC-9800シリーズ機種依存文字 (JIPS由来文字) 9区~12区

「NEC特殊文字」として有名な13区は標準化もされていて資料が豊富であるため省略。

字形のソースは http://www.kt.rim.or.jp/~aotaka/pc/character.htm

9区

2バイト半角英数。 JIS X 0201 ラテン文字集合に近いが、形状から考えて別の文字を指している可能性のある符号位置がある。

@lopspower
lopspower / README.md
Last active May 10, 2024 11:21
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@luizomf
luizomf / App.jsx
Created February 16, 2021 22:29
React hooks useReducer + useContext - Curso React
import P from 'prop-types';
import { createContext, useContext, useReducer, useRef } from 'react';
import './App.css';
// actions.js
export const actions = {
CHANGE_TITLE: 'CHANGE_TITLE',
};
// data.js